#include "basegameentity.h"
#include <cassert>

int		BaseGameEntity::m_iNextValidID = 0;	

BaseGameEntity::BaseGameEntity(int iID)
{
	SetID(iID);
}

/*-------------------------------------------------------------------------------------------------------------*/
BaseGameEntity::~BaseGameEntity()
{

}

/*-------------------------------------------------------------------------------------------------------------*/
void BaseGameEntity::Update(float fDt)
{
	Sprite::Update(fDt);
}

/*-------------------------------------------------------------------------------------------------------------*/
void BaseGameEntity::SetID(int iID)
{
	// Make sure the val is equal to or greater than the next available ID
	assert ( (iID >= m_iNextValidID) && "<BaseGameEntity::SetID>: invalid ID");

	m_iID = iID;

	m_iNextValidID = m_iID + 1;
}